//
//  BVMineEditorViewController.m
//  XiangYu
//
//  Created by YYKJ on 2017/6/8.
//  Copyright © 2017年 YYKJ. All rights reserved.
//  内心独白编辑

#import "BVMineEditorViewController.h"
#import "BVTextView.h"

@interface BVMineEditorViewController ()

@property (nonatomic ,strong) BVTextView       *contentTextV;

@end

@implementation BVMineEditorViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view setBackgroundColor:[UIColor BVBackgroundLightGrayColor]];
    [self.navigationItem setTitle:self.navTitle];
    
    [self layoutUI];
    
}

-(void)viewDidDisappear:(BOOL)animated{
    [super viewDidDisappear:animated];
    
    NSLog(@"-------%@",self.contentTextV.text);
    
}

-(void)layoutUI{
    
    UIView *bgView = [[UIView alloc]init];
    [self.view addSubview:bgView];
    [bgView setBackgroundColor:[UIColor whiteColor]];
    [bgView setFrame:CGRectMake(10, 20, ScreenW-20, 150)];
    [bgView.layer setBorderColor:[[UIColor BVLineGrayColor] CGColor]];
    [bgView.layer setBorderWidth:1.0];
    [bgView.layer setMasksToBounds:YES];
    [bgView.layer setCornerRadius:5.0];
    
    self.contentTextV = [[BVTextView alloc] init];
    [bgView addSubview:self.contentTextV];
    [self.contentTextV setPlaceholder:@" 您想说点什么..."];
    [self.contentTextV setPlaceholderColor:[UIColor BVTextGrayColor]];
    [self.contentTextV setFrame:CGRectMake(0, 0, ScreenW-20, 150)];
    [self.contentTextV setTextColor:[UIColor BVTextGrayColor]];
    [self.contentTextV setFont:[UIFont systemFontOfSize:14]];
    [self.contentTextV setText:self.content];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
}

@end
